package com.whyt.oauth.auth.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * 用户管理
 * @author ASUS
 */
@RestController
@RequestMapping("/user")
public class UserController
{
    @GetMapping(path = "/details", produces = "application/json" )
    public Principal userDetails(Principal principal)
    {
        return principal;
    }
}
